
import request from '@/plugin/axios'

// 获取列表
export function getchatsessionpage (params) {
    return request({
      url: '/chat/chatsession/sessionPage',
      method: 'get',
      params: request.adornParams(params)
    })
  }

// 获取列表
export function getchatsessionlist (params) {
  return request({
    url: '/chat/chatsession/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getchatsessioninfo (id) {
  return request({
    url: '/chat/chatsession/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addchatsession (data) {
  return request({
    url: '/chat/chatsession/save',
    method: 'post',
    data
  })
}

// 修改
export function updatechatsession (data) {
  return request({
    url: '/chat/chatsession/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchchatsession (params) {
  return request({
    url: '/chat/chatsession/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delchatsession(id) {
  return request({
    url: '/chat/chatsession/delete/' + id,
    method: 'delete',
  })
}